package cn.com.api.service.impl.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_advert_resource;

import cn.com.api.mapper.ApiU_advert_resourceMapper;

import cn.com.api.service.ApiU_advert_resourceService;

/**
 * 
 **/
@Service
public class U_advert_resourceServiceImplBase {
	@Autowired
	private ApiU_advert_resourceMapper apiU_advert_resourceMapper;
    
    // 根据id获取
	public ApiU_advert_resource findU_advert_resourceById(Integer id){
		ApiU_advert_resource u_advert_resource = apiU_advert_resourceMapper.findU_advert_resourceById( id );
		return u_advert_resource;
	}
    
    //查看数据集
	public List<ApiU_advert_resource> findU_advert_resources(){
        List<ApiU_advert_resource> u_advert_resources = apiU_advert_resourceMapper.findU_advert_resources();
		return u_advert_resources;
    }
    
	// 添加
	public int insertU_advert_resource(ApiU_advert_resource u_advert_resource){
		int ret_I= apiU_advert_resourceMapper.insertU_advert_resource(u_advert_resource);
		return ret_I;
	}

	// 修改
	public int updateU_advert_resource(ApiU_advert_resource u_advert_resource){
		int ret_I= apiU_advert_resourceMapper.updateU_advert_resource(u_advert_resource);
		return ret_I;
	}
	
    // 删除
	public int deleteU_advert_resource(Integer id){
		int ret_I= apiU_advert_resourceMapper.deleteU_advert_resource( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


